% ternary demo7
% ----------------------
% @author : slandarer
% 公众号  : slandarer随笔
% 知乎    : slandarer

figure('Name','ternary demo7','Units','normalized','Position',[.05,.2,.42,.56])

% 初始化三元相图(Init ternary plot)
STA=STernary();

% 随机构造数据(Randomly generated data)
A=rand(1,500);
B=rand(1,500);
C=rand(1,500);


STA.SPcolor(A,B,C,10)
% STA.SScatter(A,B,C,5,'filled','CData',[0,0,0]);

colormap(summer)

CM=[0.2670    0.0049    0.3294
    0.2827    0.1002    0.4222
    0.2771    0.1852    0.4899
    0.2539    0.2653    0.5300
    0.2220    0.3392    0.5488
    0.1906    0.4071    0.5561
    0.1636    0.4711    0.5581
    0.1391    0.5338    0.5553
    0.1206    0.5964    0.5436
    0.1347    0.6586    0.5176
    0.2080    0.7187    0.4729
    0.3278    0.7740    0.4066
    0.4775    0.8214    0.3182
    0.6473    0.8584    0.2099
    0.8249    0.8847    0.1062
    0.9932    0.9062    0.1439];
% colormap(CM)



